﻿using GCC.Container.Abstracts;
using System.DeviceServer.Models;

namespace System.DeviceServer
{
    public class GCCEntrance : AbsEntrance
    {
        public override bool IsRelease()
        {
#if DEBUG
            return false;
#else
            return true;
#endif
        }

        public override string Name()
        {
            return "System.DeviceServer";
        }

        public override Version NeedsApiContainerVersion()
        {
            return new Version("0.0.0.1");
        }

        public override void OnGetDBInstance()
        {
        }

        public override void OnSystemStarted(AbsGCCContext context)
        {
            DeviceCache.Instance.Init(context);
           // DeviceCommManager.Instance.Init();
           // DeviceCommManager.Instance.Start();
           // _ = UDPServerTest.Run();
        }

        public override void SystemTryShutDown()
        {

        }
    }
}
